//
//  MusicPlayer.h
//  LO_MUSIC
//
//  Created by 向祖华 on 16/2/26.
//  Copyright © 2016年 杨少锋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RequestURL.h"

//定义一个block
typedef void(^IndexBlock)(NSInteger index);

@interface MusicPlayer : UIViewController
//建一个属性用于接受上一个界面传过来的值
@property(nonatomic,strong)MusicMode * model;
@property(nonatomic,strong)UIImage * image;
@property(nonatomic,strong)NSIndexPath * indexPath;
@property(nonatomic,strong)NSArray*allDataArray;

@property (weak, nonatomic) IBOutlet UIImageView *musicImage;//音乐图片
@property (weak, nonatomic) IBOutlet UILabel *songName;//歌名
@property (weak, nonatomic) IBOutlet UISlider *plyeingCours;//播放进度条
@property (weak, nonatomic) IBOutlet UIButton *upOne;//上一首
@property (weak, nonatomic) IBOutlet UIButton *playButton;//播放按钮
@property (weak, nonatomic) IBOutlet UIButton *downOne;//下一首
@property (weak, nonatomic) IBOutlet UILabel *volumeChange;//音量调整
@property (weak, nonatomic) IBOutlet UISlider *volumeDisplay;//音量显示条
@property (weak, nonatomic) IBOutlet UILabel *durationTime;//歌曲时长
@property (weak, nonatomic) IBOutlet UILabel *playingTime;//播放时间
@property (weak, nonatomic) IBOutlet UITableView *tebleView;//歌词
@property (nonatomic,strong)NSIndexPath *singingIndex;//
@property(nonatomic,copy)IndexBlock indexBlock;//block属性
//传值方法
-(void)sendIndex:(IndexBlock)index;

@end
